package zzj.campus_book_sharing_platform.Entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class Post {
    //帖子标题
    private String title;
    //帖子内容
    private String content;
    //用户id
    private String userId;
    //帖子id
    private String postId;
    //帖子类型
    private String typePost;
    //帖子状态（一般只有交换贴才有）
    private String statusPost;
    //发帖时间
    @JsonFormat(pattern="yyyy-MM-dd")
    private LocalDateTime creatTime;
}
